package com.tjresearch.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import com.tjresearch.dao.RedisDao;
import com.tjresearch.pojo.Item;

@Service
public class RedisService {
	@Autowired
	private RedisDao redisDao;
	@Cacheable(value="thisredis", key="'users_'+#id")
	public List<Item> queryItemsByThemeId(int id) {
		return redisDao.queryItemsByThemeId();
	}
	

}
